//
//  NYMessageListRequest.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/22.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYMessageListRequest.h"
#import "NYAirlineItemModel.h"

@implementation NYMessageListRequest


+ (instancetype)requestWithType:(NYExamineRequestStatus)status param:(NSDictionary *)param {
        
        NYMessageListRequest *request = [super requestWithParams:param];
        request.status = status;
        return request;
}

- (NSString *)url {
        
        switch (self.status) {
                case NYExamineRequestStatusChoose: {
                        
                        return @"/video/message";
                        break;
                }
                case NYExamineRequestStatusCup: {
                        
                        return @"/cup/message";
                        break;
                }
                default:
                        break;
        }
        return @"/video/list";
}
- (Class)contentType {
        return [NYAirlineItemModel class];
}
- (BOOL)contentIsArray {
        return true;
}

@end
